import 'package:flutter/material.dart';
import '../../../core/theme/theme.dart';
import '../../widgets/common/animated_background.dart';
import '../../widgets/auth/auth_drawer.dart';

class LoginScreen extends StatelessWidget {
  const LoginScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    final screenHeight = MediaQuery.of(context).size.height;

    return Scaffold(
      backgroundColor: Colors.transparent,
      body: AnimatedBackground(
        child: Stack(
          children: [
            // 顶部标题
            Positioned(
              top: screenHeight * 0.15,
              left: 0,
              right: 0,
              child: Text(
                '咕噜酱云盘',
                textAlign: TextAlign.center,
                style: context.headline1.copyWith(
                  color: Colors.white,
                  fontWeight: FontWeight.w300,
                  letterSpacing: 4,
                ),
              ),
            ),

            // 认证抽屉
            const AuthDrawer(),
          ],
        ),
      ),
    );
  }
}
